package com.ruoyi.business.common.enums.examine;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author zhengyz
 * @date 2025/3/13
 */
@Getter
@AllArgsConstructor
public enum ExamineEnum {

    WAIT_EXAMINE("WAIT_EXAMINE", "待审核"),
    SUCCESS_EXAMINE("SUCCESS_EXAMINE", "审核通过"),
    FAIL_EXAMINE("FAIL_EXAMINE", "审核不通过"),
    ;

    private String value;
    private String desc;

    /**
     * 检查某个值是否存在于枚举中
     * @param value 要检查的值
     * @return 是否存在
     */
    public static boolean isExist(String value) {
        for (ExamineEnum examineEnum : ExamineEnum.values()) {
            if (examineEnum.getValue().equals(value)) {
                return true;
            }
        }
        return false;
    }
}